
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '会员信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_111b1791_3k37',
        name: "{{code_111b1791_3k37}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_519f99e9_bgky',
        name: "{{name_519f99e9_bgky}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_edec2018_qgd1',
        name: "{{remark_edec2018_qgd1}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

    @NgFormControl({
        id: 'organization_565e5ab0_5i32',
        name: "{{organization_565e5ab0_5i32}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '组织',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender_faaf746f_hi6i',
        name: "{{gender_faaf746f_hi6i}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea_2a72c952_t1f5',
        name: "{{countryOrArea_2a72c952_t1f5}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

    @NgFormControl({
        id: 'location_7b95e133_ucsd',
        name: "{{location_7b95e133_ucsd}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'idNumber_f362dce6_rgj2',
        name: "{{idNumber_f362dce6_rgj2}}",
        binding: 'idNumber',
        updateOn: 'blur',
        defaultI18nValue: '身份证号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    idNumber: FormControl;

    @NgFormControl({
        id: 'levelOfMember_5d9f202a_am2u',
        name: "{{levelOfMember_5d9f202a_am2u}}",
        binding: 'levelOfMember',
        updateOn: 'blur',
        defaultI18nValue: '等级',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    levelOfMember: FormControl;

    @NgFormControl({
        id: 'levelName_48194981_1hs1',
        name: "{{levelName_48194981_1hs1}}",
        binding: 'levelName',
        updateOn: 'blur',
        defaultI18nValue: '等级名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    levelName: FormControl;

    @NgFormControl({
        id: 'recommandPeople_d65386c5_avx3',
        name: "{{recommandPeople_d65386c5_avx3}}",
        binding: 'recommandPeople',
        updateOn: 'blur',
        defaultI18nValue: '推荐人',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    recommandPeople: FormControl;

    @NgFormControl({
        id: 'phoneNumber_ca16b860_8oth',
        name: "{{phoneNumber_ca16b860_8oth}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

}